package com.gdut.simple.data.entity;

import java.io.File;

public class PhotoFolder {

    private String dir;

    private String firstPhotoPath;

    private String name;

    private int count;

    public String getDir() {
        return dir;
    }

    public void setDir(String dir) {
        this.dir = dir;
        int lastIndexOf = this.dir.lastIndexOf(File.separator);
        this.name = this.dir.substring(lastIndexOf + 1);
    }

    public String getFirstPhotoPath() {
        return firstPhotoPath;
    }

    public void setFirstPhotoPath(String firstPhotoPath) {
        this.firstPhotoPath = firstPhotoPath;
    }

    public String getName() {
        return name;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    @Override
    public String toString() {
        return "PhotoFolder{" +
                "count=" + count +
                ", name='" + name + '\'' +
                ", firstPhotoPath='" + firstPhotoPath + '\'' +
                ", dir='" + dir + '\'' +
                '}';
    }
}
